package metier.entities;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToMany;


@Entity
@DiscriminatorValue(value="employe")
public class Employe extends Utilisateur{
	
	
	private String TypeEmploye;
	private Integer authentification;
	
	
	
	//Employe class
	@ManyToMany(fetch=FetchType.EAGER)
    private List<Role> listeRole=new ArrayList<Role>();



	public String getTypeEmploye() {
		return TypeEmploye;
	}



	public void setTypeEmploye(String typeEmploye) {
		TypeEmploye = typeEmploye;
	}



	public Integer getAuthentification() {
		return authentification;
	}



	public void setAuthentification(Integer authentification) {
		this.authentification = authentification;
	}



	public List<Role> getListeRole() {
		return listeRole;
	}



	public void setListeRole(List<Role> listeRole) {
		this.listeRole = listeRole;
	}



	public Employe(String username, String password, String email,
			boolean statut, String typeEmploye, Integer authentification,
			List<Role> listeRole) {
		super(username, password, email, statut);
		TypeEmploye = typeEmploye;
		this.authentification = authentification;
		this.listeRole = listeRole;
	}



	public Employe() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	
	
	
}
